package com.xxl;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Contact;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.servers.Server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@OpenAPIDefinition(
        info = @Info(title = "用户登录API文档",description = "测试API文档",version = "version-1.0",
                contact = @Contact(name = "xxl",email = "3578144921@qq.com",url = "https://gitee.com/com_xxl/spring-boot-study")),
        servers = {@Server(url = "http://localhost:8081/",description = "默认地址"),@Server(url = "http://localhost:8080/",description = "默认地址")}
)

public class Demo08SwaggerApplication {
    public static void main(String[] args) {
        SpringApplication.run(Demo08SwaggerApplication.class, args);
    }
}
